<?php
include 'includes.php';
?>


<!-- Bootstrap core CSS -->


<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="../../assets/ico/favicon.ico">
        <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="bootstrap/css/css.css" rel="stylesheet">
        <script type="text/javascript" src="bootstrap/js/jquery-1.11.0.min.js"></script>
        <script type="text/javascript" src="bootstrap/js/utilidades.js"></script>

        <title>The Pengüins mafia Bis List - Editar PJ</title>

    </head>


    <?php
    include './cabecera.php';
    ?>


    <!-- Main jumbotron for a primary marketing message or call to action -->


    <div class="container contenido">

        <div class="page-header">
            <h2>Personajes <small>Gestiona tus personajes</small></h1>
        </div>
    </div>
    <?php
    if (isset($_SESSION['user'])) {

        $pj = R::load('pjs', $_GET['id']);
        ?>
        <div class="container">
            <!-- Example row of columns -->
            <div class="row">
                <div class="col-md-4">
                    <form role="form" method="POST" action="pjeditado.php?id=<?php echo $pj->id ?> ">
                        <div class="form-group">
                            <label for="exampleInputEmail1">Nick</label>
                            <input type="Text" class="form-control" id="exampleInputEmail1" placeholder="Nick" name="nick" value="<?php echo $pj->nick ?>">
                        </div>
                        <select id="clase" class="form-control" name="clase" onchange="cambioSelect()">
                            <option>Warlock</option>
                            <option>Mago</option>
                            <option>Druida</option>
                            <option>Warrior</option>
                            <option>Priest</option>
                            <option>Monje</option>
                            <option>Chaman</option>
                            <option>Paladin</option>
                            <option>DK</option>
                            <option>Rogue</option>
                            <option>Hunter</option>
                        </select>
                        <select id="rol" class="form-control" name="rol">
                            <option>DPS Caster</option>
                        </select>

                        <br />
                        <button type="submit" class="btn btn-success">Añadir Personaje</button>
                    </form>
                </div>
            </div>
            <hr>

        </div> <!-- /container -->

        <?php
    }
    ?>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->


    <?php
    include 'pie.php';
    ?>